package com.sunlands.zlcx.usercenter.repository;

import com.sunlands.zlcx.usercenter.domain.log.UserOnlineLogDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author anjl
 * @date 1:30 PM 2019/4/15
 * description: 存储用户活跃日志
 */
@Repository
public interface UserOnlineLogRepository extends JpaRepository<UserOnlineLogDO, Long>,JpaSpecificationExecutor<UserOnlineLogDO> {

    UserOnlineLogDO findByChannelIdAndUserId(Long channelId, Long userId);
}

